<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['环卫管理','数据报表','地磅数据']" icon="fa fa-cube" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span>
					<h2>地磅数据</h2>
				</header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<!-- <sa-company-tree-car  companyTreeId="companyTree" wrapId="content" [isShowCarSort]="false"  [isShowCarNum]="true"  (companySelected)="companySelected($event)"></sa-company-tree-car> -->
								<div class="selectDate top_module">
									<table-select-date [notInit]='true' (outerTime)="datePickerSelected($event)"></table-select-date>
								</div>
								<button type="button" class="btn btn-primary" (click)="tableSearch()">查询</button>
								<!-- <button type="button" class="btn btn-primary" (click)="showAddRenewal(addRenewalModal)">添加</button> -->
								<!-- <button type="button" class="btn btn-primary" (click)="showImportModal(weightModal)">导入</button> -->
								<!-- <button type="button" class="btn btn-primary" (click)="exportData()">导出</button> -->
							</div>
							<div class="right top-search">
								<input type="text" [(ngModel)]="searchKey" (change)="tableSearch()" class="search-input" placeholder="车牌号、过磅编号">
								<span class="top-search-box">
									<button class="top-search-btn" type="button" (click)="tableSearch()"> <i class="fa fa-search"></i></button>
								</span>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>过磅编号</th>
										<th>过磅时间</th>
										<th>车牌号</th>
										<th>毛重</th>
										<th>毛重采集时间</th>
										<th>皮重</th>
										<th>皮重采集时间</th>
										<th>净重</th>
										<th>品名编号</th>
										<th>品名名称</th>
										<th>供料单位编号</th>
										<th>供料单位名称</th>
										<th>收料单位编号</th>
										<th>收料单位名称</th>
										<th>备注</th>
										<th>记录状态</th>
										<th>操作日期</th>
										<th>扣重</th>
										<th>实收重量</th>
										<th>备用1</th>
										<th>备用2</th>
										<th>备用3</th>
										<th>备用4</th>
										<th>备用5</th>
										<th>备用6</th>
										<th>备用7</th>
										<th>备用8</th>
										<th>备用9</th>
										<th>备用10</th>
										<th>车号识别方向</th>
										<th>进出厂合并标识</th>
										<th>图片</th>
										<th>创建时间</th>
										<th>更新时间</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData">
										<td>{{row.fponderid}}</td>
										<td>{{row.fpondate}}</td>
										<td>{{row.fcarnum}}</td>
										<td>{{row.fgrossweight}}</td>
										<td>{{row.fgrossdate}}</td>
										<td>{{row.ftareweight}}</td>
										<td>{{row.ftaredate}}</td>
										<td>{{row.fnetweight}}</td>
										<td>{{row.fmatid}}</td>
										<td>{{row.fMatName}}</td>
										<td>{{row.fprounitid}}</td>
										<td>{{row.fProUnitName}}</td>
										<td>{{row.fshopunitid}}</td>
										<td>{{row.fShopUnitName}}</td>
										<td>{{row.fmemo}}</td>
										<td>{{row.fsignText}}</td>
										<td>{{row.fsysdate}}</td>
										<td>{{row.fotherweight}}</td>
										<td>{{row.fbalanceweight}}</td>
										<td>{{row.mem1}}</td>
										<td>{{row.mem2}}</td>
										<td>{{row.mem3}}</td>
										<td>{{row.mem4}}</td>
										<td>{{row.mem5}}</td>
										<td>{{row.mem6}}</td>
										<td>{{row.mem7}}</td>
										<td>{{row.mem8}}</td>
										<td>{{row.mem9}}</td>
										<td>{{row.mem10}}</td>
										<td>{{row.fcarDirection}}</td>
										<td>{{row.fisMerged}}</td>
										<td>
											<button type="button" class="" (click)='showImg(row.cPicFilePathList,ImgModal)'>查看</button>
										</td>
										<td>{{row.createTime}}</td>
										<td>{{row.updateTime}}</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount" [rows]="pageSize" [currentPage]="curPage - 1" (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>
<!-- 图片查看   弹窗-->
<section bsModal #ImgModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" aria-label="Close" (click)="closeImg(ImgModal)"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title">图片查看</h4>
			</div>
			<div class="modal-body">
				<div class="row form-horizontal imagesInfo">
					<div class="imgCont">
						<img class="imgSrc"  *ngFor="let imgUrl of imgList" [src]="imgUrl" alt="图片"  style="margin-right: 10px;"/>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
<!-- 图片查看 弹窗end-->